//
//  JXDetailViewController.swift
//  weibo
//
//  Created by admin on 16/5/20.
//  Copyright © 2016年 admin. All rights reserved.
//

import UIKit

class JXDetailViewController: UIViewController {

	override func viewDidLoad() {
		super.viewDidLoad()

		view.backgroundColor = UIColor.whiteColor()
        
//
        //添加右侧按钮
        let rightBtnItem = UIBarButtonItem(imageName: "navigationbar_friendsearch", title: nil, target: self, action: #selector(push))
        
        navigationItem.rightBarButtonItem = rightBtnItem
	}
    
    
    @objc private func push(){
        
        let vc = JXDetailViewController()
        
        vc.hidesBottomBarWhenPushed = true
        
        navigationController?.pushViewController(vc, animated: true)
        
        
        
    }


	override func didReceiveMemoryWarning() {
		super.didReceiveMemoryWarning()
		// Dispose of any resources that can be recreated.
	}

	/*
	 // MARK: - Navigation

	 // In a storyboard-based application, you will often want to do a little preparation before navigation
	 override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject?) {
	 // Get the new view controller using segue.destinationViewController.
	 // Pass the selected object to the new view controller.
	 }
	 */

}
